html, body {
    height: 100%;
    overflow-y: auto; /* Enable vertical scrolling for the entire page */
    margin: 0;
    padding: 0;
    font-family: Satoshi, sans-serif;
    background-color: #fefaf5;
}


.container {
    display: flex;
    max-width: 1800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.question-section {
    flex: 3;
    padding: 20px;
    overflow-y: auto;
    max-height: 91vh;
}
.sidebar {
    flex: 1;
    padding: 20px;
    background-color: #f4f4f4;
    border-left: 1px solid #ddd;
}
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.timer {
    position: relative;
    width: 100px;
    height: 100px;
}
.timer circle {
    fill: none;
    stroke-width: 8;
}
.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
}
/* Progress Bar */
#progressBar {
    height: 10px;
    background-color: #4caf50;
    width: 0;
    transition: width 0.3s ease-in-out;
}

#progressText {
    font-size: 14px;
    color: #333;
    margin-left: 10px;
}
.question-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}
.question-card h3 {
    margin: 0 0 10px;
}
.mark-review-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #ffc107;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}
.mark-review-btn.active {
    background-color: #ff5722;
    color: #fff;
}
.filter, .navigation {
    margin-bottom: 50px;
}
.filter select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 1rem;
    color: #333;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border 0.2s, box-shadow 0.2s;
}
.filter select:hover {
    border-color: #007bff;
}
.filter select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}
.navigation {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 10px;
}
.navigation button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}
.navigation button.answered {
    background-color: #28a745;
}
.navigation button.unanswered {
    background-color: #007bff;
}
.navigation button.review {
    background-color: #ffc107;
    color: #000;
}
.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}
.submit-btn:hover {
    background-color: #218838;
}

.scrollable-timestamp-container {
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
    padding: 1px;
    text-align: center;
}
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: #4CAF50; /* Green color for the spinner */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-spinner .fa-spinner {
    font-size: 2em;
}

.legend {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 3px;
}


/* Header Section */
.header {
width: 100%;
height: 72px;
background-color: #ffffff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
}


#questionNavigation {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    gap: 20px;              /* Space between rows */
    align-items: center;    /* Center-align rows horizontally */
    margin: 20px 0;
}

.button-row {
    display: flex;
    gap: 10px;              /* Space between buttons */
    justify-content: center; /* Center-align buttons in each row */
}

.navigation-button {
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid #6B47DC;
    border-radius: 8px;
    background-color: #F8F8FF;
    color: #6B47DC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation-button:hover {
    background-color: #6B47DC;
    color: #FFFFFF;
}

.navigation-button.unanswered {
    background-color: #FFCCCC;
    border-color: #FF0000;
}

.navigation-button.answered {
    background-color: #CCFFCC;
    border-color: #00CC00;
}

/* Examination Box */
#examinationBox {
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: move;
    width: 350px;
    height: 250px; /* Increased height to fit buttons */
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Canvas Styling */
#canvas {
    border: 1px solid #ccc;
    background-color: transparent; /* Set canvas background to transparent */
    width: 100%; /* Full width */
    height: auto; /* Automatic height */
}